package com.rocching.easychat.model;

import com.rocching.easychat.util.StringUtil;

import java.util.List;

public class GroupModel extends GroupListModel {
    private List<GroupMemberModel> memberList;

    public List<GroupMemberModel> getMemberList() {
        return memberList;
    }

    public void setMemberList(List<GroupMemberModel> memberList) {
        this.memberList = memberList;
        if (StringUtil.isNotEmpty(memberList)) {
            setGroupUserCount(memberList.size());
        }
    }
}
